package com.jurenzhao.partssystem.business.order_enterprise.entity;

import java.math.BigDecimal;
import java.util.Date;

public class SaleOrderDetail {
    private String detailId;

    private String orderId;

    private String partId;

    private Date partVersion;

    private BigDecimal orderQuan;

    private BigDecimal orderPrice;

    private String processFlag;

    public String getDetailId() {
        return detailId;
    }

    public void setDetailId(String detailId) {
        this.detailId = detailId == null ? null : detailId.trim();
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public String getPartId() {
        return partId;
    }

    public void setPartId(String partId) {
        this.partId = partId == null ? null : partId.trim();
    }

    public Date getPartVersion() {
        return partVersion;
    }

    public void setPartVersion(Date partVersion) {
        this.partVersion = partVersion;
    }

    public BigDecimal getOrderQuan() {
        return orderQuan;
    }

    public void setOrderQuan(BigDecimal orderQuan) {
        this.orderQuan = orderQuan;
    }

    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getProcessFlag(){
        return processFlag;
    }

    public String getProcessFlagString() {

        if(processFlag!=null){
            if (processFlag.equals("0")){
                return "正常";
            }else if(processFlag.equals("1")){
                return  "修改";
            }else if(processFlag.equals("2")){
                return  "删除";
            }else if(processFlag.equals("3")){
                return  "新增";
            }
        }
        return  "";
    }

    public void setProcessFlag(String processFlag) {
        this.processFlag = processFlag == null ? null : processFlag.trim();
    }
}